#! /usr/bin/python
# _*_ coding:UTF-8 _*_
import matplotlib.pyplot as plt
import numpy as np


def visit_data():
    print "描点"
    xlist = [1, 2, 3]
    ylist = [3.1, 6.9, 9.3]
    f1 = plt.figure(1)
    plt.plot(xlist, ylist, 'rx', label='sss')
    plt.xlim(0, 4)  # x轴取值范围
    plt.ylim(0, 10)  # y轴取值范围
    plt.xlabel('house size')
    plt.ylabel("price")
    plt.title('line_regression')
    plt.legend()
    plt.show()
    return

if __name__ == "__main__" :
    print "线性回归练习"
    visit_data()


